
import Router from 'vue-router'
import Vue from 'vue'
import VueRouter from 'vue-router'
import axios from "axios";

Vue.use(Router)
Vue.prototype.$http = axios;
Vue.use(VueRouter)

let router = new VueRouter({
  routes: [
    {
      path: '/',
      component: () => import('../components/Index.vue'),
      children: [
        {
          path: '',
          component: () => import('../components/layout.vue'),
        },
        {
          path: '/hyzx',
          component: () => import('../components/hyzx.vue'),
        },
        {
          path: '/ddzx',
          component: () => import('../components/ddzx.vue'),
        },

        {
          path: '/starttobuy',
          component: () => import('../components/starttobuy.vue'),
        },
        {
          path: '/log',
          component: () => import('../components/login.vue'),
        },
        {
          path: '/regieter',
          component: () => import('../components/register.vue'),
        },
        {
          path: '/chooseSeat',
          component: ()=> import("../components/ChooseSeat.vue")
        }

      ]
    },
  ]
})
export default router
